package com.main.tripplanner.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.main.tripplanner.dao.CountryDAO;
import com.main.tripplanner.persistent.Country;
import com.main.tripplanner.service.AbstractService;
import com.main.tripplanner.service.CountryService;


@Service
public class CountryServiceImpl extends AbstractService implements CountryService{
	
	@Autowired
	private CountryDAO countryDAO;

	public void saveCountry(Country country) {
		countryDAO.saveEntity(country);
		
	}

	public List<Country> getAllCountries() {
		return countryDAO.getAllCountries();
	}
	
}
